let base64 = require('js-base64').Base64;

export default {
  getIdentity(state) {//获取用户唯一标识
    if (sessionStorage.getItem("identity")) {
      state.identity = base64.decode(sessionStorage.getItem("identity"));
    }
    return state.identity;
  }
}
